# coding:utf-8
from flask import Flask


def register_blueprint(app):
    from app.api.v1 import create_blueprint
    app.register_blueprint(create_blueprint(), url_prefix='/v1')


def create_app():
    app = Flask(__name__)
    # 注册蓝图
    register_blueprint(app)
    return app


app = create_app()

if __name__ == '__main__':
    app.run(debug=True)
